package com.gepengjun.lims.mapper;

import com.gepengjun.lims.entity.Permission;
import com.baomidou.mybatisplus.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jun
 * @since 2018-08-19
 */
public interface PermissionMapper extends BaseMapper<Permission> {

    List<Permission> findTopMenus(List<Long> permissionIds);

    List<Permission> findLeftMenus(Long parentId,List<Long> permissionIds);

    List<Permission> findByUserId(Long userId);
}
